<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.js"></script>
</head>
<body>
    <div>十堰市</div>
    <div>武汉市</div>
    <div>襄樊</div>
    <script>
        let arr=['red', 'pink', 'green']
        $("div").each(function(index,val){
           $(val).eq(0).css("color", arr[index]);
        })
        $.each(arr,function(i,val){
          console.log(val);
        })
    </script>
</body>
</html>